package com.kunlong.util;

import lombok.Data;

import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;

/**
 * 预约计费服务
 * @name ParkingBillService
 * @author zz  | www.xwparking.com
 * @date 2018年11月2日  
 * @description:
 */
public interface AttendService {

	/**

	 * @return
	 */
	public ComputeResult compute(InputParam param);

	@Data
	public static class AttendParam {
		String day;//日期
		int delay; //迟到时间分钟
		Boolean beAvoid;//是否免除
	}

	@Data
	public static class InputParam {
		private Long empId;

		List<AttendParam> attendParams = new ArrayList<>();

	}


	@Data
	public static class ComputeResult {
		private List<AttendParam> attendParams = new ArrayList<>();
		//员工标识
		private int timesIgnore;
		//费用
		private int totalMinutes;
		private String remark;

	}

}
